package com.znjb.myapplication.fragment;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Created by 刘亚飞 on 2017/3/17.
 */

public class TestFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {


        Bundle bundle = getArguments();
        if (null == bundle) {
            System.out.println("空");
        }
        String title = bundle.getString("title");
        TextView tv = new TextView(getContext());
        tv.setText(title);
        return tv;
    }
}
